package com.rpay.common.util.http.listener;


import com.rpay.common.util.http.listener.strategy.ListenerStrategy;

/**
 * @date: 2017/09/20
 * @author: 
 * @desc:事件监听器
 */
public abstract class AbstractEventListener {

    private ListenerStrategy source;

    public AbstractEventListener(ListenerStrategy source) {
        this.source = source;
    }

    /**
     * 请求处理
     * @param object
     */
    abstract public void handle(EventObject object);

    public ListenerStrategy getSource() {
        return source;
    }
}
